
#include "TestStaticVar.h"

using namespace Nezha;

std::map<std::string, MiniFrameworkCreator*> MiniFramework::msCreators;
MiniFramework* MiniFramework::msMiniFramework = NULL;

void MiniFramework::SetFramework(const char* name)
{
    std::map<std::string, MiniFrameworkCreator*>::iterator it = msCreators.find(name);
	
	if(it != msCreators.end())
	{
		msMiniFramework = it->second->create();
	}
}

void MiniFramework::RegisterFrameworkCreator(const char* name, MiniFrameworkCreator* c)
{
	msCreators[name] = c;
}

